/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.aptech.childcare.entities;

import com.aptech.childcare.components.PropertyIndex;
import java.sql.Date;

/**
 *
 * @author Xuan Hieu
 */
public class Nanny implements PropertyIndex {

    private int nannyID = -1;
    private int classID;
    private String fullName;
    private String sex;
    private String pathImage;
    private Date birthday;
    private String address;
    private String phone;
    private String email;
    private float charge;
    private int workinghours;
    private Date StartDay;
    private String lastError;

    /**
     * @return the nannyID
     */
    public int getNannyID() {
        return nannyID;
    }

    /**
     * @param nannyID the nannyID to set
     */
    public void setNannyID(int nannyID) {
        this.nannyID = nannyID;
    }

    /**
     * @return the classID
     */
    public int getClassID() {
        return classID;
    }

    /**
     * @param classID the classID to set
     */
    public void setClassID(int classID) {
        this.classID = classID;
    }

    /**
     * @return the fullName
     */
    public String getFullName() {
        return fullName;
    }

    /**
     * @param fullName the fullName to set
     */
    public void setFullName(String fullName) {
        this.fullName = fullName;
    }

    /**
     * @return the sex
     */
    public String getSex() {
        return sex;
    }

    /**
     * @param sex the sex to set
     */
    public void setSex(String sex) {
        this.sex = sex;
    }

    /**
     * @return the pathImage
     */
    public String getPathImage() {
        return pathImage;
    }

    /**
     * @param pathImage the pathImage to set
     */
    public void setPathImage(String pathImage) {
        this.pathImage = pathImage;
    }

    /**
     * @return the birthday
     */
    public Date getBirthday() {
        return birthday;
    }

    /**
     * @param birthday the birthday to set
     */
    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    /**
     * @return the address
     */
    public String getAddress() {
        return address;
    }

    /**
     * @param address the address to set
     */
    public void setAddress(String address) {
        this.address = address;
    }

    /**
     * @return the phone
     */
    public String getPhone() {
        return phone;
    }

    /**
     * @param phone the phone to set
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }

    /**
     * @return the email
     */
    public String getEmail() {
        return email;
    }

    /**
     * @param email the email to set
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * @return the charge
     */
    public float getCharge() {
        return charge;
    }

    /**
     * @param charge the charge to set
     */
    public void setCharge(float charge) {
        this.charge = charge;
    }

    /**
     * @return the working
     */
    public int getWorkinghours() {
        return workinghours;
    }

    /**
     * @param working the working to set
     */
    public void setWorkinghours(int workinghours) {
        this.workinghours = workinghours;
    }

    /**
     * @return the lastError
     */
    public String getLastError() {
        return lastError;
    }

    /**
     * @param lastError the lastError to set
     */
    public void setLastError(String lastError) {
        this.lastError = lastError;
    }

    /**
     * @return the StartDay
     */
    public Date getStartDay() {
        return StartDay;
    }

    /**
     * @param StartDay the StartDay to set
     */
    public void setStartDay(Date StartDay) {
        this.StartDay = StartDay;
    }

    /**
     *
     * @return
     */
    public Object getPropertyValue(int index) {
        String value = "";
        switch (index) {
            case 1:
                value = String.valueOf(this.getNannyID());
                break;
            case 2:
                value = this.getFullName();
                break;
            case 3:
                value = this.getSex();
                break;
            case 4:
                value = this.getPathImage();
                break;
            case 5:
                value = String.valueOf(this.getBirthday());
                break;
            case 6:
                value = this.getAddress();
                break;
            case 7:
                value = this.getEmail();
                break;
            case 8:
                value = this.getPhone();
                break;
            case 9:
                value = String.valueOf(this.getCharge());
                break;
            case 10:
                value = String.valueOf(this.getWorkinghours());
                break;
            case 11:
                value = String.valueOf(this.getStartDay());
                break;
               case 12:
                value = String.valueOf(this.getClassID());
                break;
        }
        return value;

    }

    public void setPropertyValue(int index, Object value) {
    }

    public Class getPropertyClass(int index) {
        return String.class;
    }
}
